//
//  GYStoreHomeSecondCell.m
//  GoodLuck
//
//  Created by apple on 2018/3/13.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYStoreHomeSecondCell.h"

@interface GYStoreHomeSecondCell ()

@property (weak, nonatomic) IBOutlet UIImageView *goods_ImageView;
@property (weak, nonatomic) IBOutlet UILabel *goods_Namelable;

@property (weak, nonatomic) IBOutlet UILabel *goods_prioceLable;

@end
@implementation GYStoreHomeSecondCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setGoods:(GYSearchGoos *)goods {
    _goods = goods;
    
    [self.goods_ImageView sd_setImageWithURL:[NSURL URLWithString:goods.goods_image_url] placeholderImage:[UIImage imageNamed:@"4"]];
    self.goods_Namelable.text = goods.goods_name;
    self.goods_prioceLable.text = [NSString stringWithFormat:@"￥ %@",goods.goods_price];
}

//- (CGFloat)cellHeight:(GYSearchGoos *)model {
//    self.goods = model;
//    
//    [self layoutIfNeeded];
//    NSLog(@"=====%@",NSStringFromCGRect(self.goods_prioceLable.frame));
//    return CGRectGetMaxY(self.goods_prioceLable.frame) ;
//}
@end
